package com.example.spotitube.Controller;

import java.util.Comparator;

import com.example.spotitube.Model.Track;

/**
 * Compares the length of two tracks
 * @author Jeffrey
 *
 */
public class LengthComparator implements Comparator<Track>{
	@Override
	public int compare(Track track1, Track track2){
		
		return track1.getLength() - track2.getLength();
	}
}
